<?php
namespace Api\Controller;
use Think\Controller;
class ClubsController extends Controller {
    public function getClubs(){

        // $m_id = $_GET['m_id'];

        $club = M('club');
        $data = $club -> order("club_id")->select();

        echo json_encode($data);
         echo "<br>";

    }

     public function Clubsdetail(){
      $club_id=$_GET['club_id'];
      $clubmodel=M('club');
      $club=$clubmodel->find($club_id); 
      $this->club=$club;
      exit(json_encode($club));
    } 



}
